<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>ajax</title>
	<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
	<script>
		$(document).ready(function () {
			$("#btn1").click(function () {
				$("#test").load("/example/jquery/demo_test.txt");

			})

		})
	</script>
</head>
<body>
<h3 id="test">请点击下面的按钮,通过jQuery改变这段文本.</h3>
<button id="btn1" type="button">获得外部的内容</button>

</body>
</html>